package br.com.emanuelvictor.architectureandroid.util;

import java.io.Serializable;

import android.app.Activity;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.support.v4.app.Fragment;
import br.com.emanuelvictor.architectureandroid.fragment.MainMenu;

public class Variables implements Serializable {

	protected static final long serialVersionUID = 1L;

	protected Activity activity;
	
	public Variables(Activity activity) {
		this.activity = activity;
	}

	public Fragment getFragment() {
		return new MainMenu();
	}

	protected static boolean isTablet(Resources resources) {
		if ((resources.getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_LARGE) {
			return true;
		} else
			return false;
	}

}
